package com.leozhang.app;

import com.spire.xls.*;

// 读取指定 Sheet
public class ReadSpecificSheet {
    public static void main(String[] args) {
        Workbook workbook = new Workbook();
        workbook.loadFromFile("MultiSheet.xlsx");

        // 读取指定 Sheet（Sheet2）
        Worksheet sheet = workbook.getWorksheets().get("Sheet2");
        System.out.println("Sheet2 A1 单元格：" + sheet.getCellRange("A1").getText());
    }
}

